Skip to content

[OPTIMIZATION] Remove unnecessary loop in Interp#assignValue#451

Merged
EliteMasterEric merged 1 commit into
FunkinCrew:developfrom
NotHyper-474:opt/import-iteration
Jul 16, 2026
Merged

[OPTIMIZATION] Remove unnecessary loop in Interp#assignValue#451
EliteMasterEric merged 1 commit into
FunkinCrew:developfrom
NotHyper-474:opt/import-iteration

Conversation

@NotHyper-474

@NotHyper-474 NotHyper-474 commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Should close #337

Not sure why it's iterating through the imports to see if the class name matches the identifier in the context, considering the keys for the imports are already the names, which means we can just do a quick map lookup.

Tested with assigning to Constants.TITLE and it still errored, which means it should still work.

@NotHyper-474 NotHyper-474 changed the title Remove unnecessary loop in Interp#assignValue [OPTIMIZATION] Remove unnecessary loop in Interp#assignValue Jul 15, 2026
@EliteMasterEric
EliteMasterEric merged commit f3ba4d9 into FunkinCrew:develop Jul 16, 2026
@NotHyper-474
NotHyper-474 deleted the opt/import-iteration branch July 16, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants